#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QHostInfo>
#include <QNetworkInterface>

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = nullptr);
    ~Dialog();
QString protocolName(QAbstractSocket::NetworkLayerProtocol protocol);
private slots:
    void on_btnGethostInfo_clicked();

    void on_btnGetIPofhttp_clicked();

    void lookedUpHostInfo(const QHostInfo &host);
    void on_btnalladdresses_clicked();

    void on_btnallinterface_clicked();

    void on_btncleartext_clicked();

private:
    Ui::Dialog *ui;
};

#endif // DIALOG_H
